import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictBusinessItemUpdateHelper } from "./DictBusinessItemUpdateHelper";
import { SEntityId } from "./SEntityId";
import { EBusinessStatus } from "./EBusinessStatus";
type int = number;
//class SBusinessInfo
    
    export  class SBusinessInfo
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            this.status.__write(arg1);
            arg1.writeString(this.name);
            arg1.writeByte(this.level);
            arg1.writeByte(this.camp);
            arg1.writeInt(this.coin);
            arg1.writeInt(this.gold);
            DictBusinessItemUpdateHelper.write(arg1, this.items);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.status = EBusinessStatus.__read(arg1);
            this.name = arg1.readString();
            this.level = arg1.readByte();
            this.camp = arg1.readByte();
            this.coin = arg1.readInt();
            this.gold = arg1.readInt();
            this.items = DictBusinessItemUpdateHelper.read(arg1);
            return;
        }

        public /* var */entityId: SEntityId;

        public /* var */status: EBusinessStatus;

        public /* var */name: string;

        public /* var */level: int;

        public /* var */camp: int;

        public /* var */coin: int;

        public /* var */gold: int;

        public /* var */items: Map<any, any> /* flash.utils.Dictionary */;
    }
